export default class RibbonsOption {
  // ribbon color HSL saturation amount
  colorSaturation = "80%";
  // ribbon color HSL brightness amount
  colorBrightness = "60%";
  // ribbon color opacity amount
  colorAlpha = 0.65;
  // how fast to cycle through colors in the HSL color space
  colorCycleSpeed = 6;
  // where to start from on the Y axis on each side (top|min, middle|center, bottom|max, random)
  verticalPosition = "center";
  // how fast to get to the other side of the screen
  horizontalSpeed = 150;
  // how many ribbons to keep on screen at any given time
  ribbonCount = 3;
  // add stroke along with ribbon fill colors
  strokeSize = 0;
  // // move ribbons vertically by a factor on page scroll
  // parallaxAmount = -0.5;
  // add animation effect to each ribbon section over time
  animateSections = true;

  set(obj) {
    if (typeof obj != "object") {
      throw {
        message : 'RibbonsOption 设置参数错误',
        options : obj
      }
    }

    for (var key in obj) {
      if (this.hasOwnProperty(key)) {
        this[key] = obj[key];
      }
    }
  }
}